package network.repositories

import models.PDFImageModel
import network.service.PDFImageUploadService
import okhttp3.OkHttpClient
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory

object PDFImageUploadRepository {
    //101.132.236.192
    private val retrofit = Retrofit.Builder().baseUrl("http://localhost:8079/pdf/")
        .client(OkHttpClient()).addConverterFactory(GsonConverterFactory.create())
        .build()
    fun create(): PDFImageUploadService = retrofit.create(PDFImageUploadService ::class.java)
}

fun uploadService() = PDFImageUploadRepository.create()